<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.AffiliatesControl"
    CodeBehind="Affiliates.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-promotions.png" alt="Affiliates" />
        Manage Affiliates
    </div>
    <div class="options">
        <input type="button" onclick="location.href='AffiliateAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new affiliate" />
    </div>
</div>
<asp:GridView ID="gvAffiliates" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="AffiliateID" HeaderText="AffiliateID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
            <ItemTemplate>
                <a href="AffiliateDetails.aspx?AffiliateID=<%#Eval("AffiliateID")%>" title="Edit affiliate">
                    <%#Server.HtmlEncode(Eval("FullName").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="AffiliateDetails.aspx?AffiliateID=<%#Eval("AffiliateID")%>" title="Edit affiliate">
                    Edit </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Active" HeaderText="Active" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </Columns>
</asp:GridView>
